package com.lhn.spring5.factory;

/**
 * 静态工厂方法
 *
 * @author lhn
 * @date 2021/12/28 15:33
 * @since 1.0.0
 **/
public class StaticBarInterfaceFactory {

    public static BarInterface getInstance(Foobar foobar) {
        System.out.println(foobar);
        return new BarInterface(foobar);
    }

}